using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Linq;
using RetailAnalytic.Core;

namespace RetailAnalytic.Shell.MainCtrl
{
    public partial class Ucm_prop : UserControl
    {
        public Ucm_prop()
        {
            InitializeComponent();
        }
        public void SetPropertyPresentation(PresentationBase PresentationBase)
        {
            this.propertyGrid1.SelectedObject = PresentationBase._PropertyPresentationBase;
        }

        private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            GRetailAnalytic.Instance.DrawMainTree(((FrmMainShell)ParentForm).PresentationTree, false);
            
        }            
    }
}
